$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .main {
    margin: 220/$f+vw 200/$f+vw 120/$f+vw 200/$f+vw;

    .links {
      display: flex;

      a,
      p,
      span {
        color: #B8B8B8;
        font-size: 24/$f+vw;
        text-transform: uppercase;
      }

      a {
        transition: all 600ms;

        &:hover {
          color: #E60012;
        }
      }

      span {
        margin: 0 1vw;
      }
    }

    .t {
      margin: 2vw 0 1vw 0;
      color: #000;
      font-size: 64/$f+vw;
      font-weight: 600;
      text-transform: uppercase;
    }

    .sorts {
      display: flex;
      justify-content: flex-end;

      .order,.category {
        width: 400/$f+vw;
        margin-left: 32/$f+vw;
        position: relative;
        .d1 {
          border-radius: 30px;
          border: 1px solid #000;
          position: relative;
          padding: 32/$f+vw;
          .p1{
            color: #D4D4D4;
            font-size: 24/$f+vw;
            text-transform: uppercase;
            font-weight: 300;
          }
          .p2{
            color: #000;
            font-size: 24/$f+vw;
            text-transform: uppercase;
            font-weight: 500;
            margin-top: 32/$f+vw;
          }
          .icon{
            position: absolute;
            right: 32/$f+vw;
            top:50%;
            transform: translateY(-50%);
            cursor: pointer;
            svg{
              width: 29/$f+vw;
              display: block;
            }
          }
        }
        .d2{
          position: absolute;
          left: 0;
          top:100%;
          width: 100%;
          background-color: white;
          z-index: 5;
          text-align: center;
          display: none;
          box-shadow: 0  0 10px rgba(0,0,0,.2);
          border-radius: 20px;
          p{
            font-size: 24/$f+vw;
            padding: 1vw 0;
            border-bottom: 1px solid rgba(139, 139, 139, .2);
            transition: all 600ms;
            cursor: pointer;
            &:hover{
              color:#E60012;
            }
          }
        }
      }
    }

    .pro_box {
      margin: 3vw 0;

      .allItems {
        display: flex;
        flex-wrap: wrap;
        width: 103.2%;
        margin-left: -1.6%;

        a {
          display: block;
          width: 31%;
          background-color: white;
          margin-left: 1.6%;
          margin-top: 3vw;

          .pic {
            overflow: hidden;

            img {
              width: 100%;
              display: block;
              object-fit: cover;
              transition: all 600ms;
            }
          }

          .name {
            color: #000;
            font-size: 24/$f+vw;
            text-transform: uppercase;
            text-align: center;
            margin: 1.5vw 0;
            transition: all 600ms;
          }

          .more {
            width: 48/$f+vw;
            height: 48/$f+vw;
            position: relative;
            text-align: center;
            margin: auto;
            overflow: hidden;
            svg {
              vertical-align: middle;
              transition: all 0.3s ease-out;
              width: 48/$f+vw;
              position: relative;
              left: 0;
              path{
                transition: all 600ms;
              }
              &:nth-child(2) {
                position: absolute;
                left: -48/$f+vw;
                top: 0;
              }
            }
          }

          &:hover {
            .pic {
              img {
                transform: scale(1.05);
              }
            }

            .name {
              color: #E60012;
            }

            .more{
              svg{
                &:first-child{
                  left: 48/$f+vw;
                }
                &:nth-child(2) {
                  left: 0px;
                }
                //transform: translateY(10px);
                path{
                  //stroke: #E60012;
                }
              }
            }
          }
        }
      }

      .pager {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 5vw 0;

        .prev,
        .next {
          svg {
            display: block;
            width: 23/$f+vw;
          }
        }

        .nums {
          display: flex;
          margin: 0 1vw;

          a {
            color: rgba(139, 139, 139, 1);
            font-size: 20/$f+vw;
            padding: 0.1vw 0.5vw;
            margin: 0 0.2vw;
          }

          .active {
            color: #000;
            border-bottom: 2px solid #000;
            font-weight: 600;
          }
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 100px;
    .main{
      margin: 0 5%;
      .links{
        a,p,span{
          font-size: 16px;
        }
      }
      .t{
        font-size: 26px;
        margin: 20px 0 10px 0;
      }
      .sorts{
        width: 100%;
        flex-direction: column;
        .order,.category{
          width: 100%;
          margin-left: 0;
          margin-top: 15px;
          .d1{
            padding: 15px;
            .p1{
              font-size: 18px;
            }
            .p2{
              font-size: 18px;
              margin-top: 15px;
            }
            .icon{
              right:15px;
              svg{
                width: 20px;
              }
            }
          }
          .d2{
            p{
              font-size: 16px;
              padding: 15px 0;
            }
          }
        }
      }
      .pro_box{
        margin-top: 30px;
        .allItems{
          width: 100%;
          margin-left: 0;
          a{
            width: 100%;
            margin-left: 0;
            margin: 0 0 30px 0;
            .name{
              font-size: 18px;
              margin: 15px 0;
            }
            .more{
              width: 30px;
              height: 30px;
              svg{
                width: 30px;
                &:nth-child(2) {
                  position: absolute;
                  left: -30px;
                  top: 0;
                }
              }
            }
            &:hover{
              .more{
                svg{
                  &:first-child{
                    left: 30px;
                  }
                  &:nth-child(2) {
                    left: 0px;
                  }
                }
              }
            }
          }
        }
        .pager{
          margin: 20px 0 60px 0;
          .prev,.next{
            svg{
              width: auto;
            }
          }
          .nums{
            margin: 0 10px;
            a{
              font-size: 16px;
              padding: 3px 5px;
              margin: 0 5px;
            }
          }
        }
      }
    }
  }
}